Karol,
You're close: the global "cookie" variable is a HashMap containing all cookies. The cookie.get("cookie_name") call returns an object of the javax.servlet.http.Cookie class. The properties and methods of the class can be found
here. You'll see on that link that the class has a getValue() method. So, to retrieve the cookie value you can use:
cookie.get("cookie_name").getValue();
Mark